# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Munzir Taha <munzirtaha at gmail.com>
# Contributor: Wyegu <bsdazs17 at gmail dot com>
# Contributor: Firmicus <firmicus at gmx dot net>

pkgbase=scheherazade-new-font
_fname=ScheherazadeNew
pkgname=ttf-${pkgbase%-font}
pkgver=4.000
pkgrel=1
pkgdesc='An Arabic Naskh-style Unicode typeface'
arch=(any)
url="https://software.sil.org/${_pkgname/-*}"
license=(OFL)
provides=(ttf-sil-scheherazade)
replaces=(ttf-sil-scheherazade)
conflicts=('ttf-sil-fonts<=6')
_archive="$_fname-$pkgver"
source=("https://software.sil.org/downloads/r/${pkgbase%%-*}/$_archive.zip")
sha256sums=('a79485520308e312b1677b35ccfe19c12d9379df062efd97ff9c6a3b8d8c4935')

package_ttf-scheherazade-new() {
	cd "$_fname-$pkgver"
	install -Dm0644 -t "$pkgdir/usr/share/fonts/TTF/" *.ttf
	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" OFL.txt
	install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" README.txt FONTLOG.txt documentation/pdf/*
}

